# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
#inhibit_all_warnings!

target 'JJack' do
  # Comment the next line if you don't want to use dynamic frameworks
  
  
  #target.build_configurations.build_settings["SDKROOT"] = "iphoneos"
  
  
  use_frameworks!


    pod 'Firebase/Analytics'
    pod 'Firebase/DynamicLinks'
    pod 'Firebase/RemoteConfig'
    
    pod 'SwiftyStoreKit'
    
    #pod "GoogleAppMeasurement"

    pod 'MKProgress'
    pod 'Atributika', '4.9.1'
    pod 'PersonalizedAdConsent'
    pod 'Fabric'
    pod 'FirebaseCrashlytics'
    
    
    pod 'FBSDKCoreKit'

    #pod 'TenjinSDK'
    
    pod 'IronSourceSDK'
    pod 'IronSourceAdColonyAdapter'
    pod 'IronSourceAppLovinAdapter'
    pod 'IronSourceFacebookAdapter'
    pod 'IronSourceAdMobAdapter'
    pod 'IronSourceHyprMXAdapter'
    pod 'IronSourceInMobiAdapter'
    pod 'IronSourceVungleAdapter'
    pod 'IronSourcePangleAdapter'
    pod 'IronSourceUnityAdsAdapter'
    
    pod 'AppsFlyerFramework'
    pod 'AppsFlyer-AdRevenue'
    
    post_install do |installer|
      puts 'Patching PersonalizedAdConsent'
      %x(patch -p1 -d ../Pods/PersonalizedAdConsent/ < PersonalizedAdConsent.patch)
      
      
      installer.pods_project.build_configurations.each do |config|
        config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64 arm64e armv7 armv7s"
      end

      installer.pods_project.build_configurations.each do |config|
        config.build_settings["ONLY_ACTIVE_ARCH"] = "YES"
      end

      installer.pods_project.build_configurations.each do |config|
        config.build_settings["SDKROOT"] = "iphoneos"
      end

      installer.pods_project.build_configurations.each do |config|
         config.build_settings["SUPPORTED_PLATFORMS"] = "iphoneos"
      end
        
         
      installer.pods_project.targets.each do |t|
        
          t.build_configurations.each do |config|
            config.build_settings["SDKROOT"] = "iphoneos"
          end
        
           t.build_configurations.each do |config|
              config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
           end

           t.build_configurations.each do |config|
              config.build_settings["SUPPORTED_PLATFORMS"] = "iphoneos"
           end

#           t.build_configurations.each do |config|
#              config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "x86_64 i386 arm64 arm64e armv7 armv7s"
#           end
           
           t.build_configurations.each do |config|
              config.build_settings["ONLY_ACTIVE_ARCH"] = "YES"
           end
           
      end
        
    end
    
  
         
         

end
